package ch.bfh.ti.pixelator.preferences;

import android.content.Context;
import android.preference.SwitchPreference;
import android.util.AttributeSet;

/**
 * The SwitchPreference shows some really weird behavior. Every time it is
 * hidden in the view it is being recycled and reseted. This is why we simply
 * wrap the Control. This way it works as expected.
 * 
 */
public class FixSwitchPreference extends SwitchPreference {
	public FixSwitchPreference(Context context) {
		super(context);
	}

	public FixSwitchPreference(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public FixSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
}
